﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Starry.Wx.Core
{
    public class CallApiException: Exception
    {
        public int ErrorCode { get; set; }
        public CallApiException(int errorCode,string message) : base(message)
        {
            this.ErrorCode = errorCode;
        }
        public CallApiException(BaseResult result) : base(result.errmsg)
        {
            this.ErrorCode = result.errcode;
        }
    }
}
